package day07;

public class KIds extends ManKind  {
	private int yearsOld;
	
	public KIds() {
	}

	public KIds(int yearsOld) {
		this.yearsOld = yearsOld;
	}

	public int getYearsOld() {
		return yearsOld;
	}

	public void setYearsOld(int yearsOld) {
		this.yearsOld = yearsOld;
	}

	public void printAge() {
		System.out.println("今年"+yearsOld+"岁了");
	}
}
